package com.cdyx.outsideprescription.util;

import lombok.Data;


public enum ResponseCodeEnum {
    SUCCESS(200,"成功"),
    SUCCESS_SAVE(200,"保存成功"),
    FAIL(300,"失败,服务器异常"),
    FAIL_DIAGSAVE(301,"临床诊断保存失败"),
    FAIL_RECIPESAVE(302,"处方保存失败"),
    FAIL_SAVE(303,"临床诊断和处方保存失败"),
    PARAM_INVAILD(400,"提交参数非法"),
    NOT_AUTHED(403,"无权限，访问拒绝"),
    NOT_FOUND(404,"资源未找到");
    private  Integer code;
    private String msg;

    ResponseCodeEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

}
